
export const indexReducer = (state = {
    tabIndex:'home' 
}, action) => { 
    switch (action.type) {
        case 'tabIndex':
            return { 
                ...state,
                tabIndex: action.data 
            } 
        default:
            return state;
    }
}


